package com.example.service;

import com.example.model.Machine;
import com.example.model.MachineTx;
import com.example.model.Machine_test;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Classname MachineService
 * @Description 用户信息Service层接口
 * @Author chengjunyu
 * @Date 2022/1/24 11:06

 */
@Service
public interface  MachineService {

    /**
     * @Description 根据产品二维码查询machinetx
     * @Author chengjunyu
     * @Date 2022/1/24 11:11
     * @Param id
     * @Return com.example.model.Machine
     * @Exception
     */
    List<MachineTx> listMachineTxByQrCodes(List<String> qrCodes);

    /**
     * @Description 根据用户ID查询用户信息
     * @Author chengjunyu
     * @Date 2022/1/24 11:11
     * @Param id
     * @Return com.example.model.Machine
     * @Exception
     */
    Machine selectMachineById(int id);

    /**
     * @Description 根据二维码查询
     * @Author chengjunyu
     * @Date 2022/1/24 11:11
     * @Param id
     * @Return com.example.model.Machine
     * @Exception
     */
    Machine selectMachineByQrcode(String qrcode);
    /**
     * @Description 根据二维码查询2
     * @Author chengjunyu
     * @Date 2022/1/24 11:11
     * @Param id
     * @Return com.example.model.Machine
     * @Exception
     */
    Machine selectMachineByQrcode2(String qrcode);

    /**
     * @Description 根据二维码查询3
     * @Author chengjunyu
     * @Date 2022/1/24 11:11
     * @Param id
     * @Return com.example.model.Machine
     * @Exception
     */
    Machine selectMachineByQrcode3(String qrcode);

    /**
     * @Description 根据二维码查询4
     * @Author chengjunyu
     * @Date 2022/1/24 11:11
     * @Param id
     * @Return com.example.model.Machine
     * @Exception
     */
    Machine selectMachineByQrcode4(String qrcode);
    /**
     * @Description 根据类型查询
     * @Author chengjunyu
     * @Date 2022/1/24 11:11
     * @Param id
     * @Return com.example.model.Machine
     * @Exception
     */
    Machine selectMachineByType(Machine machine);
    /**
     * @Description 根据二维码查询点胶
     * @Author chengjunyu
     * @Date 2022/1/24 11:11
     * @Param id
     * @Return com.example.model.Machine
     * @Exception
     */
    Machine selectMachineDjByQrcode(String qrcode);
    /**
     * @Description 根据二维码查询点胶
     * @Author chengjunyu
     * @Date 2022/1/24 11:11
     * @Param id
     * @Return com.example.model.Machine
     * @Exception
     */
    List<Machine>  selectMachineResult(List<String> qrCodes);
    /**
     * @Description 查询全部用户信息
     * @Author chengjunyu
     * @Date 2022/1/24 11:11
     * @Param * @param
     * @Return java.util.List<com.example.model.Machine>
     * @Exception
     */
    List<Machine> selectMachineAll();
    /**
     * @Description 新增用户信息
     * @Author chengjunyu
     * @Date 2022/1/24 11:12
     * @Param Machine
     * @Return int
     * @Exception
     */
    int insertMachine(Machine machine,List<Machine_test> machine_test_List);

    /**
     * @Description 新增用户信息
     * @Author chengjunyu
     * @Date 2022/1/24 11:12
     * @Param Machine
     * @Return int
     * @Exception
     */
    int insertMachineResult(Machine machine);

    /**
     * @Description 修改用户信息
     * @Author chengjunyu
     * @Date 2022/1/24 11:12
     * @Param Machine
     * @Return int
     * @Exception
     */
    int updateMachine(Machine machine);

    /**
     * @Description 删除用户信息
     * @Author chengjunyu
     * @Date 2022/1/24 11:12
     * @Param id
     * @Return int
     * @Exception
     */
    int deleteMachineById(int id);

 //   String calc_product(String str_qrcode);

 //   String calc_item(String str_product);

  //  String calc_colour(String str_product);


}
